﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight;
using Medecine.DataAccess.Users;
using Medecine.Dbo;

namespace Medecine.Interface.Users
{
	public class UserViewModel : ViewModelBase
	{
		public UserViewModel(User user)
		{
			_userModel = user;
		}

		private readonly User _userModel;

		public string UserName { get { return _userModel.Login; } }
		public string FirstName { get { return _userModel.Firstname; } }
		public string LastName { get { return _userModel.Name; } }
		public string Role { get { return _userModel.Role; } }
		public byte[] Picture { get { return _userModel.Picture; } }
	}
}
